
<!DOCTYPE html>
<html>
<body  background="123.jpg">

<meta charset="utf-8">
<div style="text-align:center;">
</form>
    <button onclick="playPause()">播放/暂停</button>
    <button onclick="makeBig()">大</button>
    <button onclick="makeNormal()">中</button>
    <button onclick="makeSmall()">小</button>

    <br />
    <video id="video1" width="1500" style="margin-top:15px;" controls="controls">
            <source src="C:\Users\ASUS\Desktop\yry\视频\hcy.mp4" type="video/mp4" />  
        <source src="C:\Users\ASUS\Desktop\yry\视频\hcy.mp4" type="video/ogg" />
        Your browser does not support HTML5 video.
    </video>
</div>

<script type="text/javascript">
    var myVideo=document.getElementById("video1");

    function playPause()
    {
        if (myVideo.paused)
            myVideo.play();
        else
            myVideo.pause();
    }

    function makeBig()
    {
        myVideo.width=1800;
    }

    function makeSmall()
    {
        myVideo.width=500;
    }

    function makeNormal()
    {
        myVideo.width=800
;
    }
</script>
</body>
</html>
